package com.tepth.appmanageservice.protocol.bodys.system;

import com.tepth.appmanageservice.protocol.Index;
import com.tepth.appmanageservice.protocol.interfaces.IReceive;
import com.tepth.appmanageservice.tools.ext.ExtToInt;

public class ModifyHeartbeatFrequency implements IReceive {
	public static final short ID = 0x0B04;

	private int heartbeatFrequency;

	public int getHeartbeatFrequency() {
		return this.heartbeatFrequency;
	}

	@Override
	public short getLength() {
		return 0;
	}

	@Override
	public void setLength(int length) {

	}

	@Override
	public void Receive(byte[] data, Index index) {
		this.heartbeatFrequency = ExtToInt.fromByteArrayTo32(data, index);
	}
}